import Mock from 'mockjs'
const data = Mock.mock({
  'list|20': [
    {
      title: '@ctitle(2,4)',
      'children|20': [
        {
          image: 'https://robohash.org/@id',
          'price|100-1000.2-4': 1,
          'count|10-20': 1,
          title: '@ctitle(3,6)'
        }
      ]
    }
  ]
})
Mock.mock('/api/list', 'get', () => {
  return {
    code: 200,
    data: data.list
  }
})
